runtime.m.curg (field)

103 uses

	runtime (current package)
		cgocall.go#L303: 	if gp != gp.m.curg {
		coro.go#L222: 	setGNoWB(&mp.curg, gnext)
		debugcall.go#L35: 	if getg() != getg().m.curg {
		heapdump.go#L698: 	casGToWaiting(gp.m.curg, _Grunning, waitReasonDumpingHeap)
		heapdump.go#L713: 	casgstatus(gp.m.curg, _Gwaiting, _Grunning)
		malloc.go#L1086: 		if assistG := getg().m.curg; assistG != nil {
		malloc.go#L1668: 	if assistG.m.curg != nil {
		malloc.go#L1669: 		assistG = assistG.m.curg
		mbitmap.go#L1856: 	if gp := getg(); gp.m.curg.stack.lo <= uintptr(p) && uintptr(p) < gp.m.curg.stack.hi {
		mbitmap.go#L1859: 		for u.initAt(gp.m.curg.sched.pc, gp.m.curg.sched.sp, 0, gp.m.curg, 0); u.valid(); u.next() {
		mgc.go#L1029: 	curgp := mp.curg
		mgcmark.go#L219: 			userG := getg().m.curg
		mgcmark.go#L1156: 	gp := getg().m.curg
		mgcmark.go#L1286: 	gp := getg().m.curg
		mgcwork.go#L476: 		gp := getg().m.curg
		mprof.go#L548: 		if gp.m.curg == nil || gp.m.curg == gp {
		mprof.go#L551: 			nstk = gcallers(gp.m.curg, skip, mp.profStack)
		mprof.go#L554: 		if gp.m.curg == nil || gp.m.curg == gp {
		mprof.go#L565: 			mp.profStack[0] = gp.m.curg.sched.pc
		mprof.go#L566: 			nstk = 1 + fpTracebackPartialExpand(skip, unsafe.Pointer(gp.m.curg.sched.bp), mp.profStack[1:])
		panic.go#L274: 	if gp.m.curg != gp {
		panic.go#L389: 	if gp.m.curg != gp {
		panic.go#L483: 	if gp.m.curg != gp {
		panic.go#L752: 	if gp.m.curg != gp {
		panic.go#L1416: 		if gp != gp.m.curg {
		panic.go#L1459: 	if gp != mp.curg {
		preempt.go#L106: 	if mp := getg().m; mp.curg != nil && readgstatus(mp.curg) == _Grunning {
		preempt.go#L369: 	if mp.curg != gp {
		proc.go#L423: 	gp := mp.curg
		proc.go#L1560: 	casGToWaitingForSuspendG(getg().m.curg, _Grunning, waitReasonStoppingTheWorld)
		proc.go#L1670: 	casgstatus(getg().m.curg, _Gwaiting, _Grunning)
		proc.go#L2035: 		gp := getg().m.curg
		proc.go#L2386: 	casgstatus(mp.curg, _Gdead, _Gsyscall)
		proc.go#L2391: 			trace.GoCreateSyscall(mp.curg)
		proc.go#L2447: 	mp.curg = gp
		proc.go#L2520: 	casgstatus(mp.curg, _Gsyscall, _Gdead)
		proc.go#L2521: 	mp.curg.preemptStop = false
		proc.go#L2548: 	mp.curg.trace.reset()
		proc.go#L3263: 	mp.curg = gp
		proc.go#L4101: 	setMNoWB(&gp.m.curg.m, nil)
		proc.go#L4102: 	setGNoWB(&gp.m.curg, nil)
		proc.go#L4912: 	gp := getg().m.curg
		proc.go#L4941: 	gp := getg().m.curg
		proc.go#L5105: 		if mp.curg != nil {
		proc.go#L5106: 			newg.labels = mp.curg.labels
		proc.go#L5517: 	if mp.ncgo > 0 && mp.curg != nil && mp.curg.syscallpc != 0 && mp.curg.syscallsp != 0 {
		proc.go#L5533: 		u.initAt(mp.curg.syscallpc, mp.curg.syscallsp, 0, mp.curg, unwindSilentErrors)
		proc.go#L5570: 		if gp != nil && gp.m != nil && gp.m.curg != nil {
		proc.go#L5571: 			tagPtr = &gp.m.curg.labels
		proc.go#L5579: 			if gp.m.curg != nil {
		proc.go#L5580: 				gprof = gp.m.curg
		proc.go#L6376: 	gp := mp.curg
		proc.go#L6454: 		if mp.curg != nil {
		proc.go#L6455: 			print(mp.curg.goid)
		runtime2.go#L541: 	curg            *g       // current running goroutine
		sema.go#L144: 	if gp != gp.m.curg {
		signal_unix.go#L697: 	if !c.sigFromUser() && flags&_SigPanic != 0 && (gp.throwsplit || gp != mp.curg) {
		signal_unix.go#L768: 		if crashing.Load() > 0 && gp != mp.curg && mp.curg != nil && readgstatus(mp.curg)&^_Gscan == _Grunning {
		signal_unix.go#L770: 			goroutineheader(mp.curg)
		signal_unix.go#L771: 			traceback(^uintptr(0), ^uintptr(0), 0, mp.curg)
		signal_unix.go#L855: 	if mp.incgo && gp == mp.g0 && mp.curg != nil {
		signal_unix.go#L859: 		gp = mp.curg
		signal_unix.go#L1213: 	if gp != nil && gp.m != nil && gp.m.curg != nil && !gp.m.isExtraInC && !gp.m.incgo {
		stack.go#L972: 	if thisg.m.morebuf.g.ptr() != thisg.m.curg {
		stack.go#L973: 		print("runtime: newstack called from g=", hex(thisg.m.morebuf.g), "\n"+"\tm=", thisg.m, " m->curg=", thisg.m.curg, " m->g0=", thisg.m.g0, " m->gsignal=", thisg.m.gsignal, "\n")
		stack.go#L979: 	gp := thisg.m.curg
		stack.go#L981: 	if thisg.m.curg.throwsplit {
		stack.go#L1191: 		if !(gp == getg().m.curg && getg() != getg().m.curg && s == _Grunning) {
		stack.go#L1202: 	if gp == getg().m.curg && gp.m.libcallsp != 0 {
		trace.go#L375: 			me := getg().m.curg
		trace.go#L794: 		getg().racectx = getg().m.curg.racectx
		traceback.go#L134: 	if ourg := getg(); ourg == gp && ourg == ourg.m.curg {
		traceback.go#L288: 		if u.flags&unwindJumpStack != 0 && gp == gp.m.g0 && gp.m.curg != nil && gp.m.curg.m == gp.m {
		traceback.go#L296: 				gp = gp.m.curg
		traceback.go#L319: 				gp = gp.m.curg
		traceback.go#L1004: 				if gp.m != nil && gp.m.throwing >= throwTypeRuntime && gp == gp.m.curg || level >= 2 {
		traceback.go#L1115: 	if mp.throwing >= throwTypeRuntime && gp != nil && (gp == mp.curg || gp == mp.caughtsig.ptr()) {
		traceback.go#L1223: 	if gp.m != nil && gp.m.throwing >= throwTypeRuntime && gp == gp.m.curg || level >= 2 {
		traceback.go#L1251: 	curgp := getg().m.curg
		traceback.go#L1631: 	if panicking.Load() > 0 || getg().m.curg != getg() {
		traceback.go#L1651: 	if panicking.Load() > 0 || getg().m.curg != getg() {
		tracebuf.go#L46: 		if gp == gp.m.curg {
		tracebuf.go#L114: 		if gp == gp.m.curg {
		traceevent.go#L125: 	if gp := tl.mp.curg; gp != nil && !gp.trace.statusWasTraced(tl.gen) && gp.trace.acquireStatus(tl.gen) {
		traceruntime.go#L431: 	gp := getg().m.curg
		tracestack.go#L45: 		gp = mp.curg
		tracestack.go#L59: 				if getg() == gp || mp.curg == gp {
		tracestatus.go#L103: 		if w.mp.p.ptr() == pp && w.mp.curg != nil && readgstatus(w.mp.curg)&^_Gscan == _Gsyscall {